import React from "react";
import ReactDOM from "react-dom/client";
// 但是直接用@ 不可以 需要去tsconfig.json配置
import { BrowserRouter as Router } from "react-router-dom";

// 用来向下传递数据 Provider 
import { Provider } from "react-redux";
import store from "@/store";
import App from "@/App";


// antd 配置中文 一页显示几条数据的文字
import zhCN from 'antd/es/locale/zh_CN';
import {ConfigProvider} from "antd";


ReactDOM.createRoot(document.querySelector("#root") as Element)
	.render((
		<ConfigProvider locale={zhCN}>
			<Provider store={store}>
				<Router>
					<App></App>
				</Router>
			</Provider>
		</ConfigProvider>
	))